import mongoose from 'mongoose';

const roleSchema = new mongoose.Schema({
    name:{type:String,required:true},
    auth_name:String,
    auth_time:Number,
    create_time:{type:Number,default:Date.now},
    menus:Array
});

const RoleModel = mongoose.model("roles",roleSchema);

export default RoleModel;